package com.czp.ssm.bean;

import java.io.Serializable;
import java.util.List;

public class User implements Serializable{
    private Long id;

    private String userId;

    private String userName;

    private String userPhone;

    private String userPassword;

    private String companyId;
    
    private Company company;
    
    private UserCard userCard;
    
    private OperaRule operaRule;
    
    private Role role;
    
    private List<Role> roles;
    
    public void setRoles(List<Role> roles) {
		this.roles = roles;
	}
    public List<Role> getRoles() {
		return roles;
	}
    
    private String loginCode;
    
    public void setLoginCode(String loginCode) {
		this.loginCode = loginCode;
	}
    public String getLoginCode() {
		return loginCode;
	}
    
    public void setRole(Role role) {
		this.role = role;
	}
    public Role getRole() {
		return role;
	}
    
    
    public OperaRule getOperaRule() {
		return operaRule;
	}

	public void setOperaRule(OperaRule operaRule) {
		this.operaRule = operaRule;
	}

	public UserCard getUserCard() {
		return userCard;
	}

	public void setUserCard(UserCard userCard) {
		this.userCard = userCard;
	}

	public Company getCompany() {
		return company;
	}

	public void setCompany(Company company) {
		this.company = company;
	}

	public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone == null ? null : userPhone.trim();
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword == null ? null : userPassword.trim();
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId == null ? null : companyId.trim();
    }

	@Override
	public String toString() {
		return "User [id=" + id + ", userId=" + userId + ", userName=" + userName + ", userPhone=" + userPhone
				+ ", userPassword=" + userPassword + ", companyId=" + companyId + ", company=" + company + "]";
	}

}